<!doctype html>
<html>
<head>
    <#include "include/common.header.ftl" >
    <script type="text/javascript" src="/js/notified.js"></script>
</head>
<body style="margin: 1px">
<table id="dg" title="广告" class="easyui-datagrid"
       fitColumns="true" pagination="true" rownumbers="true"
       url="/demo01/notifiedPage?state=51&limit=10&sort=id" fit="true" toolbar="#tb">
    <thead>
    <tr>
        <th field="cb" checkbox="true" align="center"></th>
        <th field="notifiedContent" width="50" align="center">通知内容</th>
        <th field="notifiedTime" width="50" align="center" >时间</th>
        <th field="type" width="50" align="center" >用户/阿姨通知</th>
          <th field="phoneNumber" width="50" align="center" >手机号</th>
            <th field="detailType" width="50" align="center" >通知类型</th>
         <th field="id" width="50" align="center" >ID</th>
    </tr>
    </thead>
</table>
<div id="tb">
    <div>
       <a href="javascript:openSaleChanceAddDialog()" class="easyui-linkbutton" iconCls="icon-add" plain="true">创建</a>
        <a href="javascript:openSaleChanceModifyDialog()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">详情/修改</a>
        <a href="javascript:deleteSaleChance()" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>
    </div>
    <div>
        &nbsp;通知内容：&nbsp;<input type="text" id="s_phoneNumber" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        &nbsp;用户/阿姨通知：&nbsp;<input type="text" id="s_orderNumber" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        <a href="javascript:searchSaleChance()" class="easyui-linkbutton" iconCls="icon-search" plain="true">搜索</a>
    </div>
</div>

<div id="dlg" class="easyui-dialog" style="width:700px;height:450px;padding: 10px 20px"
     closed="true" buttons="#dlg-buttons">
        <input type="text" id="tag" name="tag" value="0"  hidden="true"/>
    <form id="fm" method="post">
        <table cellspacing="8px">
            <tr>
                <td>通知内容：</td>
                <td><input type="text"   id="notifiedContent" name="notifiedContent" class="easyui-validatebox" required="true"/></td>
                <td>时间：</td>
                <td><input type="text"   id="notifiedTime" name="notifiedTime"  class="easyui-datetimebox" required="true"/></td>
            </tr>
            <tr>
              <td>发送对象：</td>
                  <td>
 					<select class="easyui-combobox" id="type" name="type"    style="width: 175px" class="easyui-validatebox" required="true" >
                        <option value="用户"  >用户</option>
                        <option value="阿姨">阿姨</option>
                        <option value="1">手机号..(指定手机号)</option>
                    </select>
                    </td>  
              	<td>ID：</td>
                <td><input type="text"  class="easyui-tooltip" title="*不能修改" id="id" name="id" class="easyui-validatebox" required="true" /></td>
            
            </tr>
             <tr>
                <td>通知状态：</td>
                  <td>
 					<select class="easyui-combobox" id="state" name="state" style="width: 175px" class="easyui-validatebox" required="true" >
                        <option value="未读">未读</option>
                        <option value="已读">已读</option>
                    </select>
                    </td> 
                    <td>通知类型：</td>
                	<td><select class="easyui-combobox" id="detailType" name="detailType" style="width: 175px" class="easyui-validatebox" required="true" >
                        <option value="系统通知">系统通知</option>
                        <option value="提现通知">提现通知</option>
                    </select></td>
                     
                </tr>
           
            
        </table>
    </form>
</div>

<div id="dlg-buttons">
    <a href="javascript:saveSaleChance()" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
    <a href="javascript:closeSaleChanceDialog()" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
</div>
</body>
</html>